package com.nptever.webcamera.impl.request;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;

/**
 * @author ZhangKai
 * @version 1.0
 * @decription
 * @date 2018/11/20 17:31
 */
@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
public class StreamSetup {

    @XmlElement(namespace = "http://www.onvif.org/ver10/schema")
    private String Stream = "RTP-Unicast";

    @XmlElements(
            @XmlElement(name = "Transport", type = Transport.class, namespace = "http://www.onvif.org/ver10/schema")
    )
    private Transport transport;

    public void setStream(String stream) {
        Stream = stream;
    }

    public void setTransport(Transport transport) {
        this.transport = transport;
    }
}
